package com.sushi.service.impl;

import com.sushi.dao.UserDao;
import com.sushi.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    UserDao userDao;

    @Override
    public void checkLife() {
        System.out.println("I'm giving service...");
    }

    @Override
    public void checkDao() {
        System.out.println("My dao is working...");
        userDao.checkLife();
    }

}
